﻿<%@ Page Title="" Language="C#" MasterPageFile="~/VN/Layout_1_Col.Master" AutoEventWireup="true"
    CodeBehind="NguoiTimViecDangKy.aspx.cs" Inherits="TuyenDungViecLam.NguoiTimViec.NguoiTimViecDangKy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="art-Block">
        <div class="art-Block-tl">
        </div>
        <div class="art-Block-tr">
        </div>
        <div class="art-Block-bl">
        </div>
        <div class="art-Block-br">
        </div>
        <div class="art-Block-tc">
        </div>
        <div class="art-Block-bc">
        </div>
        <div class="art-Block-cl">
        </div>
        <div class="art-Block-cr">
        </div>
        <div class="art-Block-cc">
        </div>
        <div class="art-Block-body">
            <div class="art-BlockHeader">
                <div class="art-header-tag-icon">
                    <div class="t">
                        Người Tìm Việc Đăng Kí
                    </div>
                </div>
            </div>
            <div class="art-BlockContent">
                <div id="divCapnhat" runat="server">
                    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
                    </asp:ScriptManager>
                    <div class="label_register">
                        <asp:Label ID="Label1" runat="server" Text="Label" AssociatedControlID="txtUsername"> UserName:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtUsername" CssClass="tb_2" Width="200px" runat="server" onkeyup="usernameChecker(this.value);"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUsername"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                        <span id="spanAvailability"></span>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label2" runat="server" Text="Label"> Password:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtPassword" CssClass="tb_2" Width="200px" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label13" runat="server" Text="Label"> xác nhận lại Password:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtXacNhanPassword" CssClass="tb_2" Width="200px" runat="server"
                            TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtXacNhanPassword"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword"
                            ControlToValidate="txtXacNhanPassword" ErrorMessage="xác nhận mật khẩu không đúng"></asp:CompareValidator>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label3" runat="server" Text="Label"> Họ:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtHo" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtHo"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label4" runat="server" Text="Label"> Tên:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtTen" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtTen"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label5" runat="server" Text="Label"> Giới Tính:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:DropDownList ID="DrlGioiTinh" runat="server">
                        </asp:DropDownList>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label7" runat="server" Text="Label"> Email:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtEmail" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtEmail"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                            ErrorMessage="Emai không hợp lệ" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label8" runat="server" Text="Label"> Ngày sinh:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:DropDownList ID="DrlNgay" CssClass="tb_2" Width="40px" runat="server">
                        </asp:DropDownList>
                        <asp:DropDownList ID="DrlThang" CssClass="tb_2" Width="40px" runat="server">
                        </asp:DropDownList>
                        <asp:TextBox ID="TxtNam" Width="50px" CssClass="tb_2" runat="server"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                            ControlToValidate="TxtNam" ErrorMessage="Vui lòng nhập số" 
                            ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label9" runat="server" Text="Label"> Điện Thoại:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtdienthoai" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtdienthoai"
                            ErrorMessage="Vui lòng nhập số" ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label10" runat="server" Text="Label"> Di động:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtdidong" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtdidong"
                            ErrorMessage="Vui lòng nhập số" ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label11" runat="server" Text="Label"> Địa chỉ:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:TextBox ID="txtDiachi" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label12" runat="server" Text="Label"> Tỉnh thành:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:DropDownList ID="DrlTinhThanh" CssClass="tb_2" runat="server" Width="160px">
                        </asp:DropDownList>
                    </div>
                    <div class="label_register">
                        <asp:Label ID="Label6" runat="server" Text="Label"> Nhập mã xác nhận:</asp:Label>
                    </div>
                    <div class="textbox_register">
                        <img id="imgValidCode" src="../VN/captcha.aspx" />
                        <img id="imbReLoad" src="/Images/RefeshCapcha.png" width="32px" height="32px" onclick="ChangeImage()"
                            alt="refesh" /><br />
                        <asp:TextBox runat="Server" ID="txtCaptcha" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtCaptcha"
                            ErrorMessage="*"></asp:RequiredFieldValidator>
                        <br />
                        <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
                    </div>
                    <div class="textbox_register">
                        <asp:Button ID="Button1" runat="server" Text="Đăng Ký" CssClass="button" OnClick="Button1_Click1" />
                    </div>

                    <script type="text/javascript">
            var usernameCheckerTimer;
            var spanAvailability = $get("spanAvailability");

            function usernameChecker(username) 
            {
                clearTimeout(usernameCheckerTimer);
                if (username.length == 0)
                    spanAvailability.innerHTML = "";
                else
                {
                    spanAvailability.innerHTML = "<span style='color: #ccc;'>checking...</span>";
                    usernameCheckerTimer = setTimeout("checkUsernameUsage('" + username + "');", 750);
                }
            }

            function checkUsernameUsage(username) 
            {
                // initiate the ajax pagemethod call
                // upon completion, the OnSucceded callback will be executed
                PageMethods.IsUserAvailable(username, OnSucceeded);
            }

            // Callback function invoked on successful completion of the page method.
            function OnSucceeded(result, userContext, methodName) 
            {
                if (methodName == "IsUserAvailable")
                {
                    if (result == true)
                        spanAvailability.innerHTML = "<span style='color: DarkGreen;'>Available</span>";
                    else
                        spanAvailability.innerHTML = "<span style='color: Red;'>Unavailable</span>";
                }
            }
                    </script>

                </div>
                <div id="divThongbao" runat="server" visible="false" style="text-align: center">
                    <asp:Label ID="lbThongbao" runat="server" Text="" Font-Size="24"> </asp:Label>
                    <br />
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx"> Về trang chủ</asp:HyperLink>
                </div>
            </div>
        </div>
    </div>
    <br />
</asp:Content>
